QT -= gui
QT += network
QT += core
QT += sql


TARGET = qt_mes_entrance
TEMPLATE = lib
DEFINES += QTMESENTRANCE_LIBRARY

CONFIG += c++11

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

include(../qt_3rdparty_structure/appPack/Common.pri)

include(qt_mes_entrance.pri)

QT_DEBUG_PLUGINS = 1

INCLUDEPATH += \
    include \


SOURCES += \
    CConfigUtils.cpp \
    CMesEntranceApp.cpp \

HEADERS += \
    include/CConfigUtils.h \
    include/CMesEntranceApp.h \
    include/CQtMesEntranceHeader.h \
    include/qtMesEntranceSdk.h \



target.path = $$DLLDESTDIR
INSTALLS += target

LIBS += -lbase_net -lbase_lib -lmbedcrypto -lmbedtls -lmbedx509 -lnetwork_service


#拷贝公共头文件到发布目录
win32 {
    COPY_SRC = $$replace(PWD, /, \\)
    COPY_DEST = $$replace(PUBLIC_LIB_DIR, /, \\)
    system("xcopy /E /I /y $$COPY_SRC\\include\\* $$COPY_DEST\\include\\qt_mes_entrance\\")
}
else {
    system("mkdir $$PUBLIC_LIB_DIR/include/qt_mes_entrance/")
    system("cp -rf $$PWD/include/* $$PUBLIC_LIB_DIR/include/qt_mes_entrance/")
}
